<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>审计系统 - 上传项目资料</title>
    <link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
</head>
<body>
    <div class="container">
        <h1>上传项目资料</h1>
        <div class="card">
            {% if error %}
            <div class="error">{{ error }}</div>
            {% endif %}
            <form action="{{ url_for('upload_project_document', project_id=project_id) }}" method="post" enctype="multipart/form-data">
                <div class="form-group">
                    <label for="name">文件名称</label>
                    <input type="text" id="name" name="name" required>
                </div>
                <div class="form-group">
                    <label for="description">文件描述</label>
                    <textarea id="description" name="description"></textarea>
                </div>
                <div class="form-group">
                    <label for="document_type">文件类型</label>
                    <input type="text" id="document_type" name="document_type">
                </div>
                <div class="form-group">
                    <label for="file">选择文件</label>
                    <input type="file" id="file" name="file" required>
                </div>
                <button type="submit" class="btn">上传文件</button>
            </form>
        </div>
    </div>
</body>
</html>